home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-26 | 1.1 KB | 61 lines | [TEXT/MPS ] |
- set exit 0 #so 'cancel' buttons not fatal
-
- "{MPW}macros:getResAttrs" WIND
-
- set br "`request 'BoundsRect? (t,l,b,r)'`"
- set ty `request -d d 'Box: <D>oc|<B>ox|<P>lain|<A>lt|<N>ogro|<Z>oom|<R>nd'`
- confirm 'Visible?'
- if {status} == 0
- set vis "visible"
- else
- set vis "invisible"
- end
- confirm 'GoAway?'
- if {status} == 0
- set go "goAway"
- else
- set go "noGoAway"
- end
- set ref `request -d 0 'Reference Constant?'`
- set tex "`request -d Untitled 'Title?'`"
-
- #determine window type
- if {ty} =~ /[Dd]≈/
- set wtyp "documentProc"
- else
- if {ty} =~ /[Bb]≈/
- set wtyp "dBoxProc"
- else
- if {ty} =~ /[Pp]≈/
- set wtyp "plainDBox"
- else
- if {ty} =~ /[Aa]≈/
- set wtyp "altDBoxProc"
- else
- if {ty} =~ /[Nn]≈/
- set wtyp "noGrowDocProc"
- else
- if {ty} =~ /[Zz]≈/
- set wtyp "zoomDocProc"
- else
- if {ty} =~ /[Rr]≈/
- set wtyp "rDocProc"
- else
- set wtyp "unKnown"
- end
- end
- end
- end
- end
- end
- end
-
- #fill out rez entry
- echo " ∂{{br}∂},"
- echo " {wtyp},"
- echo " {vis},"
- echo " {go},"
- echo " {ref},∂t∂/* refcon *∂/"
- echo " ∂"{tex}∂""
- echo "∂};"
-